package com.ruoyi.jiaofu.domain;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品基本信息对象 ddt_jiaofu_goods
 *
 * @author ruoyi
 * @date 2024-05-26
 */
@Setter
@Getter
@ExcelIgnoreUnannotated
@ColumnWidth(20)
public class DdtJiaofuGoods extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * $column.columnComment
     */
    @ExcelProperty(value = "${comment}")
    private Long trainingSchoolId;

    /**
     * 商品编号
     */
    @ExcelProperty(value = "商品编号")
    private String goodsSn;

    /**
     * 商品名称
     */
    @ExcelProperty(value = "商品名称")
    private String name;

    /**
     * 是否必选
     */
    @ExcelProperty(value = "是否必选")
    private Integer required;

    /**
     * 学期
     */
    @ExcelProperty(value = "学期")
    private Long semesterId;

    /**
     * $column.columnComment
     */
    @ExcelProperty(value = "${comment}")
    private String schoolType;

    /**
     * $column.columnComment
     */
    @ExcelProperty(value = "${comment}")
    private String gradeType;

    /**
     * 商品所属类目ID
     */
    @ExcelProperty(value = "商品所属类目ID")
    private Long categoryId;

    /**
     * 出版社
     */
    @ExcelProperty(value = "出版社")
    private String publisher;

    /**
     * 作者
     */
    @ExcelProperty(value = "作者")
    private String author;

    /**
     * 商品简介
     */
    @ExcelProperty(value = "商品简介")
    private String brief;

    /**
     * 是否上架
     */
    @ExcelProperty(value = "是否上架")
    private Integer isOnSale;

    /**
     * $column.columnComment
     */
    @ExcelProperty(value = "${comment}")
    private Long sortOrder;

    /**
     * 商品页面商品图片
     */
    @ExcelProperty(value = "商品页面商品图片")
    private String picUrl;

    /**
     * 专柜价格
     */
    @ExcelProperty(value = "专柜价格")
    private BigDecimal counterPrice;

    /**
     * 零售价格
     */
    @ExcelProperty(value = "零售价格")
    private BigDecimal retailPrice;

    /**
     * 商品详细介绍，是富文本格式
     */
    @ExcelProperty(value = "商品详细介绍，是富文本格式")
    private String detail;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat("yyyy-MM-dd")
    @ExcelProperty(value = "创建时间")
    private Date addTime;

    /**
     * 逻辑删除
     */
    @ExcelProperty(value = "逻辑删除")
    private Integer deleted;

}
